Skip to content

fix: ui bounce in short time #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CodeMak1r-zy
Copy link

No description provided.

@CodeMak1r-zy
Copy link
Author

CodeMak1r-zy commented Dec 13, 2024

const { width, height } = e.nativeEvent.layout;

Some times, I get too many different value in e.nativeEvent.layout.width, such as 259.7402648925781 or 260.0865783691406, but I didn't do anything at the time.

The component keeps repeatedly re-rendering in a very short amount of time.

I think it should be fixed with Math.round.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant